/*
 * @Copyright: (C) 2019 Zhang Rida. All rights reserved.
 *
 * @Author: Zhang Rida
 * @Email: 215154317@qq.com
 * @FilePath: /WEILA_SDK_MODULE/src/wlsdk/src/location_module.h
 * @Date: 2021-02-27 17:08:35
 * @Description:
 *
 * @LastEditors: Zhang Rida
 * @LastEditTime: 2021-08-25 14:20:03
 */
#ifndef _LOCATION_MODULE_H
#define _LOCATION_MODULE_H

#include "wlsdk_define.h"

#ifdef __cplusplus
extern "C" {
#endif

typedef enum {
    LOCATION_MSG_SET_YBY_LOCATION,
    LOCATION_MSG_SET_LOCATION,
    LOCATION_MSG_SET_LBS,
    LOCATION_MSG_REFRESH_TRACK_CONFIG,
    LOCATION_MSG_OPEN_SOS,
    LOCATION_MSG_CLOSE_SOS,
    LOCATION_MSG_GET_LBS
} location_module_msgid;

typedef struct __location_set_location {
    wl_char        date[MAX_NAME_LEN];
    wl_bool        isgps;
    wlsdk_location location;
    wl_char        content[MAX_TEXT_LEN];
} location_set_location;

typedef struct __location_set_lbs {
    wl_char   date[MAX_NAME_LEN];
    wlsdk_lbs lbs;
    wl_char   content[MAX_TEXT_LEN];
} location_set_lbs;

typedef struct __location_get_lbs {
    wl_char   date[MAX_NAME_LEN];
    wlsdk_lbs lbs;
} location_get_lbs;

wl_int32 location_module_init(wlsdk_message_callback callback);
wl_int32 location_module_end(void);

#ifdef __cplusplus
}
#endif
#endif
